<!DOCTYPE html>
<html>
	<head>
		<meta charset="UTF-8">
		<title>测试calendar</title>
		<link rel="stylesheet" type="text/css" href="css/jquery.calendar.css"/>
		<script src="./js/jquery.min.js" type="text/javascript" charset="utf-8"></script>
		<script src="./js/jquery.calendar.js" type="text/javascript" charset="utf-8"></script>
	</head>
	<body>
		<div id="test"></div>
		<script type="text/javascript">
			// 测试数据 
			var testData = [
				{"date": "2018/4/6", "name": "测试事件1"},
				{"date": "2018/4/24", "name": "测试事件2"},
				{"date": "2018/5/24", "name": "测试事件3"}
			]
			$('#test').calendar({
				defaultDate:'2018/04/05',
				eventData: testData, // 设置eventData会覆盖url地址
				url:'js/data.json',  // 可直接通过url请求后端地址
				method:'get',
				params:{}
			});
		</script>
	</body>
</html>
